package com.inossem.warehousestorage_inossem.listener;

import android.content.Context;

/**
 * Created by leij on 2017/6/13.
 */

public abstract class BaseBeanListener<T> implements BeanListener<T> {

    @Override
    public void onDefaultError(Context context, String code, String msg) {
//        LogUtils.logRequestE(context, "code:" + code + "\nmsg:" + msg, null);
    }

    @Override
    public void onError(Context context, String code, String msg) {
    }

    @Override
    public abstract void onSuccess(T bean);

    @Override
    public boolean useDefaultError() {
        return true;
    }
}
